home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!willen.demon.co.uk
- From: Adrian Parker <adrian@willen.demon.co.uk>
- Newsgroups: comp.unix.questions,comp.lang.c,comp.lang.c++
- Subject: Re: Calling COBOL from C/C++
- Date: Thu, 18 Apr 96 17:20:36 GMT
- Organization: Quondam Ltd
- Message-ID: <829848036snz@willen.demon.co.uk>
- References: <317545E2.1DA0@interramp.com> <829814695snz@willen.demon.co.uk>
- Reply-To: adrian@willen.demon.co.uk
- X-NNTP-Posting-Host: willen.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.30
- X-Mail2News-Path: willen.demon.co.uk
-
- In article <829814695snz@willen.demon.co.uk>
- adrian@willen.demon.co.uk "Adrian Parker" writes:
-
- > In article <317545E2.1DA0@interramp.com>
- > zimmerdc@interramp.com "Daniel C. Zimmerman" writes:
- >
- > > We are trying to call a Microfocus COBOL program from a C/C++ program.
- > > We would like to receive extensive error messages (codes) from the COBOL
- > > program. One way to do this is to use the "system" call, but it does
- > > not give us the capability of getting anything more than "success" or
- > > "failure." What are some other ways to do this?
- >
- > Try asking in comp.lang.cobol they will be able to tell you for sure.
- >
- > You don't need to use "system", you can call your C routine directly
- > with a CALL statement.
-
- Takes foot out of mouth..
-
- The reverse call operates in the same way.. i.e. by reference, but
- you need to build the C into the cobol runtime..
-
- From what I remember, this is explained in the user guide.
-
- adrian
- --
- :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
- :: Adrian Parker adrian@willen.demon.co.uk Quondam Ltd ::
- :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
-